package com.cuitrip.business.order.detail.orderstatus.finder;

import com.cuitrip.business.order.detail.ui.IFinderOrderDetailView;
import com.cuitrip.business.order.detail.orderstatus.BaseOrderFormPresent;
import com.cuitrip.business.order.model.OrderItem;
import com.cuitrip.service.R;
import com.cuitrip.util.PlatformUtil;

/**
 * Created by baziii on 15/8/11.
 */
public class FinderWaitConfirmPresent extends BaseOrderFormPresent<IFinderOrderDetailView> {

    public FinderWaitConfirmPresent(IFinderOrderDetailView orderDetailView, OrderItem orderItem) {
        super(orderDetailView, orderItem);
    }

    @Override
    public void render() {
        mOrderDetailView.renderUi(build(mOrderItem));
    }

    @Override
    public void clickBottomAction() {
        mOrderDetailView.jumpConfirmOrder(mOrderItem);
    }

    @Override
    public void clickBottomText() {
        mOrderDetailView.jumpRefuseOrder(mOrderItem);
    }


    @Override
    public String getBottomActionText(OrderItem orderItem) {
        return PlatformUtil.getInstance().getString(R.string.book_operation_accept);
    }

    @Override
    public String getBottomText(OrderItem orderItem) {
        return PlatformUtil.getInstance().getString(R.string.book_operation_cancel);
    }

    @Override
    public BottomButtonStyle getBottomButtonStyle(OrderItem orderItem) {
        return BottomButtonStyle.WHITE;
    }

}